package com.acme.domain.email.impl;

import com.acme.domain.email.Client;
import com.acme.domain.email.Email;

public class EmailImpl implements Email {

    private String from;
    private String to;
    private String subject;
    private String message;
    private String emailAdress;
    private Client client;

    public Client getClient() {
        return client;
    }

    public void setClient(final Client client) {
        this.client = client;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(final String from) {
        this.from = from;
    }

    public String getTo() {
        return to;
    }

    public void setTo(final String to) {
        this.to = to;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(final String subject) {
        this.subject = subject;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(final String message) {
        this.message = message;
    }

    public void setEmailAdress(final String emailAdress) {
        this.emailAdress = emailAdress;
    }

    public String getemailAdress() {
        return emailAdress;
    }

    @Override
    public String toString() {

        return "From: " + from + " To: " + to + " on email " + emailAdress
                + " Subject:" + subject + " Message:" + message;
    }

}
